package com.atguigu.gmall.item.client;

import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * @author 李旭
 * @date 2022/1/8 9:59
 * @Description:
 */
@FeignClient(name = "service-item",fallback = ItemFeignClientImpl.class)
public interface ItemFeignClient {
    //数据汇总 ：
    @GetMapping("/api/item/getItem/{skuId}")
    public Map getItem(@PathVariable Long skuId);
}
